/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package media;

import java.util.Arrays;
import java.util.Date;
import java.util.Set;
import java.util.TreeSet;

/**
 * Classe qui défini le média Photo
 * @author Florian MININ & Khémon BEH
 */
public class Photo extends Media {

    /**
     * Variable de classe
     */
    public final static String TYPE_MEDIA_PHOTO = "Photo";
    public final static Set<String> EXTENSIONS_IMAGE = new TreeSet<String>(Arrays.asList(".jpg",".bmp", ".jpeg"));

    /**
     * Attributs
     */
    private Date datePriseDeVue;
    private String lieuPriseDeVue;

    public Photo() {
        super();
        datePriseDeVue = new Date();
        lieuPriseDeVue = "inconnu";
    }

    @Override
    public String toString() {
        return super.toString()
                + "\nDate prise de vue : " + datePriseDeVue
                + "\nLieu prise de vue : " + lieuPriseDeVue;
    }

    @Override
    public String getType() {
        return TYPE_MEDIA_PHOTO;
    }

    public Date getDate() {
        return datePriseDeVue;
    }

    public String getLieu() {
        return lieuPriseDeVue;
    }

    public void setDatePriseDeVue(Date _datePriseDeVue) {
        datePriseDeVue = _datePriseDeVue;
    }

    public void setLieuPriseDeVue(String _lieuPriseDeVue) {
        lieuPriseDeVue = _lieuPriseDeVue;
    }
}
